package networkSimulation.simulation.animals.framework

import networkSimulation.framework.{Edge}
import util.Random

/**
 * This class represents the 'animal hunts animal' relationship, and is as subType of Edge
 *
 * @author  Tim Caljé
 *          Jeroen De Raedt
 *          Jorick Van Aken
 */
class Hunt[A <% Animal](from:A,to:A) extends Edge[A](from,to){

  /**
   * This property represents the successRate of the hunt.
   *
   * (The lower this number, the bigger the chance of success)
   * 
   * 1 = 100% success
   * 2 = 50%  success
   * 3 = 33%  success
   * ...
   */
  val successRate = (new Random().nextInt(10)+1)
}